<template>
  <a href="" @click.prevent="onclick">
    <slot></slot>
  </a>
</template>

<script>
export default {
    props: {
        to: String
    },
    methods: {
        onclick() {
            window.location.hash = '# '+ this.to
        }
    }
}
</script>